package com.sss.hloster03;
//
public class Car extends Vehicles {
	int seats;//座位
	
	public Car(String brand, String color, int seats) {
		super(brand, color);
		this.seats = seats;
	}
public void showCar() {
	System.out.println("这辆小汽车：商标为："+super.brand+" ,  颜色为："+super.color+",  座位数为："+this.seats+"个。");
}
public int getSeats() {
	return seats;
}
public void setSeats(int seats) {
	this.seats = seats;
}
	
	
}
